package com.eboss2.sbs.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.eboss2.sbs.R;
import com.eboss2.sbs.activity.base.BaseActivity;
import com.mytools.tool.activityManager.MyActivityManager;
import com.tool.utils.view.ToggleButton;

public class MyDetailCustomListActivity extends BaseActivity implements View.OnClickListener{

	private TextView tv_gz_status;
	private TextView tv_wx_name;
	private TextView tv_member_id;
	private TextView tv_member_grade;
	private TextView tv_shop_sale_count;
	private TextView tv_shop_total_amount;
	private TextView tv_before_sale_time;
	private TextView tv_single_price;
	private TextView tv_refund_count;
	private RelativeLayout rl_shop_sale_count;




	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		mContext = this;
		setContentView(R.layout.activity_my_detail_custom_list);
		MyActivityManager.getInstance().addActivity(this);
		initView();
	}
	
	private void initView(){
		showView(R.id.titleback_btn_back, true);
		setTvText(R.id.tv_title, "会员详情");
		showView(R.id.next_sure, false);
		findViewById(R.id.titleback_btn_back).setOnClickListener(this);
		findViewById(R.id.next_sure).setOnClickListener(this);

		tv_gz_status = textView(R.id.tv_gz_status);
		tv_wx_name = textView(R.id.tv_wx_name);
		tv_member_id = textView(R.id.tv_member_id);
		tv_member_grade = textView(R.id.tv_member_grade);
		tv_shop_sale_count = textView(R.id.tv_shop_sale_count);
		tv_shop_total_amount = textView(R.id.tv_shop_total_amount);
		tv_before_sale_time = textView(R.id.tv_before_sale_time);
		tv_single_price = textView(R.id.tv_single_price);
		tv_refund_count = textView(R.id.tv_refund_count);



		rl_shop_sale_count = relativeLayout(R.id.rl_shop_sale_count);
		rl_shop_sale_count.setOnClickListener(this);



	}





	
	@Override
	public void onClick(View v) {
		switch (v.getId()) {
			case R.id.titleback_btn_back:
				finish();
				break;
			case R.id.rl_shop_sale_count:
				startActivity(new Intent(mContext, MyMemberRecordActivity.class).putExtra("type", 1));
				break;

			default:break;
		}
	}

	
}
